#!/bin/bash

wget http://dl.wdlinux.cn/files/lanmp_v3.3.tar.gz
tar zxvf lanmp_v3.3.tar.gz
yum -y install expect
/usr/bin/expect <<EOF
set timeout -1
spawn sh lanmp.sh
expect "*Please Input 1,2,3,4,5:"
send "4\r"
expect eof
exit
EOF